package com.rs.game.player.dialogues;

import com.rs.game.ForceTalk;
import com.rs.game.WorldTile;
import com.rs.game.player.content.Magic;
import com.rs.game.player.actions.Summoning;
import com.rs.game.player.content.pet.Pets;

public class Char extends Dialogue {

	@Override
	public void start() {
		sendOptionsDialogue("Donator Bosses", "Thunder", "Blink", "Sunfreet");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			switch (componentId) {
			case OPTION_1:
				if (player.getFamiliar() != null || player.getPet() != null || Summoning.hasPouch(player) || Pets.hasPet(player)) {
					player.getPackets().sendGameMessage("<col=FF0000>You can't use a familiar when fighting this boss, bring your friends instead!</col>");
					return;
				}				
				player.setNextForceTalk(new ForceTalk("Off we go!"));
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(2143, 5546, 3));
				player.getPackets().sendGameMessage("<col=FF0000>Note: Thunder is very hard to solo. It's recommended to bring your friends and your best gear in order to kill this monster.</col>");
				if (player.getInventory().getFreeSlots() >= 1) {
					player.getInventory().addItem(8013, 1);
				}
				break;
			case OPTION_2:
				if (player.getFamiliar() != null || player.getPet() != null || Summoning.hasPouch(player) || Pets.hasPet(player)) {
					player.getPackets().sendGameMessage("<col=FF0000>You can't use a familiar when fighting this boss, bring your friends instead!</col>");
					return;
				}
				player.setNextForceTalk(new ForceTalk("Off we go!"));
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(1971, 3247, 0));
				player.getPackets().sendGameMessage("<col=FF0000>Note: Blink is very hard to solo. It's recommended to bring your friends and your best gear in order to kill this monster.</col>");
				if (player.getInventory().getFreeSlots() >= 1) {
				player.getInventory().addItem(8013, 1);
					}
				break;
			case OPTION_3:
				if (player.getFamiliar() != null || player.getPet() != null || Summoning.hasPouch(player) || Pets.hasPet(player)) {
					player.getPackets().sendGameMessage("<col=FF0000>You can't use a familiar when fighting this boss, bring your friends instead!</col>");
					return;
				}
				player.setNextForceTalk(new ForceTalk("Off we go!"));
				Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(1807, 3217, 0));
				player.getPackets().sendGameMessage("<col=FF0000>Note: Sunfreet is EXTREMELY hard to solo. It's recommended to bring your friends and your best gear in order to kill this monster.</col>");
				if (player.getInventory().getFreeSlots() >= 1) {
				player.getInventory().addItem(8013, 1);
					}
				break;
				}
			}
		}


	@Override
	public void finish() {

	}
}